<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			function Humans(name){
				this.name=name;
			}
			function Man(){
				Humans.call(this,"marry");//’继承了Humans，同时还传递了参数
				this.age=30;//实例属性
			}
			
			var man1=new Man();
			alert(man1.name);//输出marry
			alert(man1.age);//输出30
			
		</script>
	</body>
</html>
